Kanzi 3.9.10
DynamicPropertyType< TDataType > Class Template Reference

DynamicPropertyType is a handle to an existing property type of known data type. More...

Inheritance diagram for DynamicPropertyType< TDataType >:
[legend]

Public Member Functions

 DynamicPropertyType (PropertyType< TDataType > propertyType)
 Creates a DynamicPropertyType instance that refers to the same existing property type as the given AbstractPropertyType instance does.
 
 DynamicPropertyType (String name, Class< TDataType > clazz)
 Creates a DynamicPropertyType instance referring to an existing property type with the given name.
 
- Public Member Functions inherited from PropertyType< TDataType >
 PropertyType (Class< TDataType > clazz)
 Construct a new property type without a name.
 
 PropertyType (Class< TDataType > clazz, TDataType defaultValue)
 Construct a new property type without a name.
 
 PropertyType (Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags)
 Construct a new property type without a name.
 
 PropertyType (Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags, boolean inherited)
 Construct a new property type without a name.
 
 PropertyType (String name, Class< TDataType > clazz)
 Construct a new property type.
 
 PropertyType (String name, Class< TDataType > clazz, TDataType defaultValue)
 Construct a new property type.
 
 PropertyType (String name, Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags)
 Construct a new property type.
 
 PropertyType (String name, Class< TDataType > clazz, TDataType defaultValue, EnumSet< PropertyTypeChangeFlag > flags, boolean inherited)
 Construct a new property type.
 
boolean equals (Object object)
 
EnumSet< PropertyTypeChangeFlaggetChangeFlags ()
 Gets the change flags for a property type.
 
PropertyDataType getDataType ()
 Gets the data type of a property type.
 
TDataType getDefaultValue ()
 Gets the default value for a property type.
 
boolean getIsInherited ()
 Returns whether a property type is inheritable.
 
String getName ()
 Gets the fully qualified name of a property type in the form "Class.PropertyType".
 
long getNative ()
 Gets a pointer to the backing C++ instance.
 
int hashCode ()
 

Detailed Description

DynamicPropertyType is a handle to an existing property type of known data type.

You can pass DynamicPropertyType directly to functions taking com.rightware.kanzi.PropertyType argument. You can also query all property type info directly from DynamicPropertyType.

You can use it to set or get from a node a property type value with a specific data type.

When you do not have a fully qualified name or data type of a property type, or they are irrelevant, to access property types, use com.rightware.kanzi.AbstractPropertyType instead.

Constructor & Destructor Documentation

◆ DynamicPropertyType() [1/2]

DynamicPropertyType ( String name,
Class< TDataType > clazz )

Creates a DynamicPropertyType instance referring to an existing property type with the given name.

Parameters
nameFully qualified name of an existing property type in the Kanzi property system.
clazzClass of the datatype, for example 'Float.class'.

◆ DynamicPropertyType() [2/2]

Creates a DynamicPropertyType instance that refers to the same existing property type as the given AbstractPropertyType instance does.

Parameters
propertyTypeAbstractPropertyType instance that refers to the existing property type in the Kanzi property system.